package com.sms.graduate.controller;


import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
@CrossOrigin(origins = "*")
public class SwaggerController {


    /**
     *  首页
     */
    @RequestMapping
    public ModelAndView index() {
        ModelAndView modelAndView = new ModelAndView("redirect:" + "/swagger-ui" + "/index.html");
        return modelAndView;
    }

}
